<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:composition template="/template.xhtml">
	<ui:define name="titulo">jPress - #{locale.staticViewContatoTitulo}</ui:define>
	<ui:define name="body">
		<div id="body-system" style="max-width: 98%">
			<p:panel header="Novo Blog">
				<h:form>  
					<h:panelGrid columns="2">
					 	<h:outputLabel for="nome" value="Nome:" style="font-weight: bold;" />
						<p:inputText id="nome" value="#{sessionBean.blog.nome}" required="true" size="60">
							<f:validateLength minimum="6" />
						</p:inputText>       			 	
				       			 	
				       	<h:outputLabel for="titulo" value="Titulo:" style="font-weight: bold;" />
						<p:inputText id="titulo" value="#{sessionBean.blog.titulo}" required="true" size="60">
							<f:validateLength minimum="6" />
						</p:inputText>
						
						<h:outputLabel for="descricao" value="Descrição:" style="font-weight: bold;" />
						<p:editor id="descricao" value="#{sessionBean.blog.descricao}" />
									      			 	
					    <p:commandButton value="Salvar" actionListener="#{sessionBean.cadastrarBlog}" ajax="false" update="growl" />
					    <p:commandButton type="reset" value="Limpar campos" /> 	
			       	</h:panelGrid>  
				</h:form>		 
			</p:panel>  
		</div>
	</ui:define>
</ui:composition>
</html>